import { createApp } from "vue";
import App from "./App.vue";
import { initRouter } from "./router";
import { initStore } from "./store";

import ElementPlus from 'element-plus';
import locale from "element-plus/lib/locale/lang/zh-cn";



const obj = {
  install: function (Vue: unknown) {
    console.log(Vue);
  },
};

const app = createApp(App);
app.use(ElementPlus, {locale});

app.use(obj.install);
// 路由初始化
initRouter(app);
// 状态管理初始化
initStore(app);

// 样式
import "./assets/style/reset.css";
import "./assets/style/style.css";

app.mount("#app");
